<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="创建者" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入创建者" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建部门" prop="deptId">
              <a-input v-model="form.deptId" placeholder="请输入创建部门" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建名称" prop="userName">
              <a-input v-model="form.userName" placeholder="请输入创建名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门名称" prop="deptName">
              <a-input v-model="form.deptName" placeholder="请输入部门名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="公司ID" prop="companyId">
              <a-input v-model="form.companyId" placeholder="请输入公司ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="考核ID" prop="assessId">
              <a-input v-model="form.assessId" placeholder="请输入考核ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门ID" prop="assessDept">
              <a-input v-model="form.assessDept" placeholder="请输入部门ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="考核标准ID" prop="assessDetailsId">
              <a-input
                v-model="form.assessDetailsId"
                placeholder="请输入考核标准ID"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="考核得分" prop="assessScore">
              <a-input-number
                v-model="form.assessScore"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="文件名称" prop="fileName">
              <a-textarea
                v-model="form.fileName"
                placeholder="请输入文件名称"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="文件路径" prop="fileUrl">
              <a-textarea
                v-model="form.fileUrl"
                placeholder="请输入文件路径"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="考核项详情ID" prop="assessDeptDetailsId">
              <a-input
                v-model="form.assessDeptDetailsId"
                placeholder="请输入考核项详情ID"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="排序" prop="sort">
              <a-input-number
                v-model="form.sort"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizAssessToDeptDetailsFileEditForm from "./BizAssessToDeptDetailsFileForm";
export default {
  ...BizAssessToDeptDetailsFileEditForm,
};
</script>
